/*
 *
 *  (C) Copyright 2017 Ymatou (http://www.ymatou.com/).
 *  All rights reserved.
 *
 */

package cn.ymatou.admin.falcon.parameter.echarts;

import com.google.common.collect.Lists;
import com.google.common.collect.Sets;

import java.util.List;
import java.util.Set;

/**
 * @author luoshiqian 2017/7/18 16:37
 */
public class ChartVo {

    private String chartGroup;
    private String label;
    private String name;
    private Set<String> xAxisData = Sets.newTreeSet();
    private List<String> legends = Lists.newArrayList();
    private List<Serie> series = Lists.newArrayList();

    public ChartVo() {
    }

    public ChartVo(String label, String name) {
        this.label = label;
        this.name = name;
    }

    public ChartVo(String chartGroup, String label, String name) {
        this.chartGroup = chartGroup;
        this.label = label;
        this.name = name;
    }

    public ChartVo(String label, String name, Set<String> xAxisData, List<String> legends, List<Serie> series) {
        this.label = label;
        this.xAxisData = xAxisData;
        this.legends = legends;
        this.series = series;
    }

    public String getChartGroup() {
        return chartGroup;
    }

    public void setChartGroup(String chartGroup) {
        this.chartGroup = chartGroup;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Set<String> getxAxisData() {
        return xAxisData;
    }

    public void setxAxisData(Set<String> xAxisData) {
        this.xAxisData = xAxisData;
    }

    public List<String> getLegends() {
        return legends;
    }

    public void setLegends(List<String> legends) {
        this.legends = legends;
    }

    public List<Serie> getSeries() {
        return series;
    }

    public void setSeries(List<Serie> series) {
        this.series = series;
    }
}
